package config;
import feign.Contract;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@SuppressWarnings("all")
public class FeignConfig {
    /**
    * @Description: 自定义配置feign
    * @Param: []
    * @return: feign.Contract
    * @Author: Tenghw
    * @Date: 2022/3/14 0014  20:14
    */
    @Bean
    public Contract feignContract(){
        return   new feign.Contract.Default();  //使用的是springMVC的契约
    }
    //设置feign输出日志
    @Bean
    Logger.Level feignLoggerLevel(){
        return  Logger.Level.FULL;
    }
    }

